#include "locationinfo.h"
#include "commonmacro.h"

CLocationInfo::~CLocationInfo()
	{
	SAFE_DELETE(iLocName);
	}

CLocationInfo::CLocationInfo()
	: iAltitude(0)
	, iLatitude(0)
	, iLongitude(0)
	, iAccuracy(0)
	, iLocName(NULL)
	{
	
	}

void CLocationInfo::SetLocName(const TDesC& locName)
	{
	SAFE_DELETE(iLocName);
	iLocName = locName.Alloc();
	}

void CLocationInfo::SetAltitude(TReal altitude)
	{
	iAltitude = altitude;
	}

void CLocationInfo::SetLatitude(TReal latitude)
	{
	iLatitude = latitude;
	}

void CLocationInfo::SetLongitude(TReal longitude)
	{
	iLongitude = longitude;
	}

void CLocationInfo::SetAccuracy(TReal accuracy)
	{
	iAccuracy = accuracy;
	}
